package com.itheima.properties01;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class Test {
    public static void main(String[] args) throws IOException {
        Properties pro=new Properties();
        pro.setProperty("brand", "Iphone11Pro Max");
        pro.setProperty("capacity", "256G");
        pro.setProperty("price", "10899");

        /*File file=new File("com");
        System.out.println(file.getAbsolutePath());*/

        pro.store(new FileWriter("D:/code/javase_day11-homework/src/iphone.properties")
                ,"i saved many users!");
    }
}
